﻿using System;
using System.Data;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using Skyworth.CRM.Service.Entity;

namespace Skyworth.CRM.Service.IBLL
{
    public interface ICustomerBLL
    {
        void Add(Customer model, List<CustContact> listContact, List<CustDree> listAdd);
        void Update(Customer model, List<CustContact> listContact, List<CustDree> listAdd);
        void Delete(int custId);
        Customer GetModel(int custId);
        DataTable Query(string strWhere);
        bool Exists(string custCode, out int custId);
        DataTable GetCustomerssByPage(string strWhere, string strOrderBy, int pageIndex, int pageSize,
                                          out int recordCount, out int pageCount);
        void DeletePriceCust(int policyId, int custId);
        void AddPriceCust(int policyId, int custId);
    }
}